import request from '@/utils/request.js'

export function listMedicines(){
	return request({
		url: '/service-docter/api/v1/medicines/listMedicines',
		method: 'get'
	})
}

export function listMedicinesByType(medicinesType){
	return request({
		url: `/service-docter/api/v1/medicines/listMedicinesByType/${medicinesType}`,
		method: 'get'
	})
}

export function listMedicinesRand(){
	return request({
		url: '/service-docter/api/v1/medicines/listMedicinesRand',
		method: 'get'
	})
}

export function listMedicinesByName(medicinesName){
	return request({
		url: `/service-docter/api/v1/medicines/listMedicinesByName/${medicinesName}`,
		method: 'get'
	})
}

export function getMedicinesById(medicinesId){
	return request({
		url: `/service-docter/api/v1/medicines/getMedicinesById/${medicinesId}`,
		method: 'get'
	})
}
